//品牌服务层
app.service('brandService',function ($http) {

    this.findAll=function () {
        return $http.get('../brand/findAll.do');
    }

    this.findPage=function (page, rows) {
        return $http.get('../brand/findPage.do?page='+page+'&rows='+rows);
    }

    this.findBrandById=function (id) {
        return $http.get('../brand/findBrandById.do?id='+id);
    }

    this.save=function (entity) {
        return $http.post('../brand/save.do',entity);
    }

    this.update=function (entity) {
        return $http.post('../brand/update.do',entity);
    }

    this.dele=function (ids) {
        return $http.get('../brand/delete.do?ids='+ids);
    }

    this.search=function (page, rows, searchEntity) {
        return $http.post('../brand/search.do?page='+page+'&rows='+rows,searchEntity);
    }
    
    this.selectOptionList=function () {
        return $http.get('../brand/selectOptionList.do');
    }
})